package agent

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type AgentSortEnumLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

// 代理排序枚举
func NewAgentSortEnumLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AgentSortEnumLogic {
	return &AgentSortEnumLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *AgentSortEnumLogic) AgentSortEnum() (resp []types.AgentSortEnum, err error) {
	resp = []types.AgentSortEnum{
		{Key: "asc", Value: "升序"},
		{Key: "desc", Value: "降序"},
	}

	return
}
